package com.captjack.common.util;

import com.captjack.common.util.cache.ExpireConcurrentHashMap;

/**
 * @author Capt Jack
 * @date 2018/6/29
 */
public class Test {

    public static void main(String[] args) throws Exception {
        ExpireConcurrentHashMap<String, String> expireConcurrentHashMap = new ExpireConcurrentHashMap<>();
        expireConcurrentHashMap.set("1", "2", 1000L);
        Thread.sleep(999L);
        for (int i = 0; i < 10; i++) {
            System.out.println(expireConcurrentHashMap.contains("1"));
        }
    }

}
